import request from '@/utils/request'

// 查询OMS销售订单列表
export function listSaleorderbill(query) {
  return request({
    url: '/settlementCenter/basebill/saleorderbill/list',
    method: 'get',
    params: query
  })
}

// 查询OMS销售订单详细
export function getSaleorderbill(id) {
  return request({
    url: '/settlementCenter/basebill/saleorderbill/' + id,
    method: 'get'
  })
}

// 新增OMS销售订单
export function addSaleorderbill(data) {
  return request({
    url: '/settlementCenter/basebill/saleorderbill',
    method: 'post',
    data: data
  })
}

// 修改OMS销售订单
export function updateSaleorderbill(data) {
  return request({
    url: '/settlementCenter/basebill/saleorderbill',
    method: 'put',
    data: data
  })
}

// 删除OMS销售订单
export function delSaleorderbill(id) {
  return request({
    url: '/settlementCenter/basebill/saleorderbill/' + id,
    method: 'delete'
  })
}
